package pers.cj.pdos.entity;

import com.baomidou.mybatisplus.extension.activerecord.Model;

import java.io.Serializable;
import java.math.BigDecimal;

/**
 * <p>
 * 用户的在零售收银的挂单，每个用户最多只能挂一单内容
 * </p>
 *
 * @author chenj
 * @since 2020-03-19
 */
public class UserHang extends Model<UserHang> {

    private static final long serialVersionUID = 1L;

    private String id;

    /**
     * 零售操作员id
     */
    private String userId;

    /**
     * 客户id
     */
    private String customId;

    /**
     * 1折扣率 2折扣金额
     */
    private Integer discountFlag;

    /**
     * 折扣率
     */
    private BigDecimal discountRate;

    /**
     * 折扣金额
     */
    private BigDecimal discountAmt;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }
    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }
    public String getCustomId() {
        return customId;
    }

    public void setCustomId(String customId) {
        this.customId = customId;
    }
    public Integer getDiscountFlag() {
        return discountFlag;
    }

    public void setDiscountFlag(Integer discountFlag) {
        this.discountFlag = discountFlag;
    }
    public BigDecimal getDiscountRate() {
        return discountRate;
    }

    public void setDiscountRate(BigDecimal discountRate) {
        this.discountRate = discountRate;
    }
    public BigDecimal getDiscountAmt() {
        return discountAmt;
    }

    public void setDiscountAmt(BigDecimal discountAmt) {
        this.discountAmt = discountAmt;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "UserHang{" +
            "id=" + id +
            ", userId=" + userId +
            ", customId=" + customId +
            ", discountFlag=" + discountFlag +
            ", discountRate=" + discountRate +
            ", discountAmt=" + discountAmt +
        "}";
    }
}
